<div class="contents">
  <div class="row">
      <table class="table table-striped table-hover">
      <thead>
        <tr>
          <th width="70">ID</th>
          <th width="150">基金简称</th>
          <th width="80">基金代码</th>
          <th width="80">股票代码</th>
          <th width="80">股票简称</th>
          <th width="120">持股数(万股)</th>
          <th width="120">占流通股比例</th>
          <th width="80">持股变动</th>
          <th width="120">变动股数(万股)</th>
          <th width="80">变动比例</th>
          <th width="80">截止日期</th>
          <th width="100">操作</th>
        </tr>
      </thead>
      <tbody>
        <tr ng-repeat="item in list">
          <td>{{item.id}}</td>
          <td>{{item.jjmc}}</td>
          <td>{{item.jjbm}}</td>
          <td>{{item.gpdm}}</td>
          <td>{{item.gpjc}}</td>
          <td>{{item.cgs}}</td>
          <td>{{item.zltgbl}}</td>
          <td class="status-{{item.cgbd | cgbdColorRender}}">{{item.cgbd}}</td>
          <td>{{item.bdgs}}</td>
          <td>{{item.bdbl}}</td>
          <td>{{item.jzrq}}</td>
          <td class="optd">
            <a ng-click="edit($index)" class="hand" has-auth where="btn" who="PRODUCT_EDIT" owner="{{createBy}}">编辑</a>
            <a ng-click="remove(item.id)" has-auth where="btn" who="PRODUCT_EDIT" owner="{{createBy}}" class="cur-p" ng-confirm-click="确认删除吗?">删除</a>  
          </td>
        </tr>
      </tbody>
    </table>
  </div>

  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate> 
    <input type="hidden" class="form-control" name="id" ng-model="item.id"/>
    <div class="form-group" ng-class="{'has-error':form.zdrgje.$invalid}">
      <label class="col-sm-2 control-label">基金简称</label>
      <div class="col-sm-5 form-control-text">{{jj.jjmc}}</div>
    </div> 
  
    <div class="form-group" ng-class="{'has-error':form.gpdm.$invalid}">
      <label class="col-sm-2 control-label">股票代码</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="股票代码" name="gpdm" ng-model="item.gpdm" required="required">
      </div>
    </div>
  
    <div class="form-group" ng-class="{'has-error':form.gpjc.$invalid}">
      <label class="col-sm-2 control-label">股票简称</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="股票简称" name="gpjc" ng-model="item.gpjc" required="required">
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.cgs.$invalid}">
      <label class="col-sm-2 control-label">持股数(万股)</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="持股数(万股)" name="cgs" ng-model="item.cgs" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.zltgbl.$invalid}">
      <label class="col-sm-2 control-label">占流通股比例</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="占流通股比例" name="zltgbl" ng-model="item.zltgbl" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.cgbd.$invalid}">
      <label class="col-sm-2 control-label">持股变动</label>
      <div class="col-sm-5">
        <select class="form-control" name="cgbd" ng-model="item.cgbd" ng-options="m.value as m.text for m in dictMap['zcgbdModel']" > </select>
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.bdgs.$invalid}">
      <label class="col-sm-2 control-label">变动股数(万股)</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="变动股数(万股)" name="bdgs" ng-model="item.bdgs" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.bdbl.$invalid}">
      <label class="col-sm-2 control-label">变动比例</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="变动比例" name="bdbl" ng-model="item.bdbl" >
      </div>
    </div>    
  
    <div class="form-group" ng-class="{'has-error':form.jzrq.$invalid}">
      <label class="col-sm-2 control-label">截止日期</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="截止日期" name="jzrq" ng-model="item.jzrq" >
      </div>
    </div>    
  
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default"  has-auth where="btn" who="PRODUCT_EDIT">提交</button>
      </div>
    </div>
  </form>
</div>